package com.dtxt

import grails.converters.JSON

/**
 * Created by Administrator on 2016-03-21.
 */
class ListToGrid {
    public final static formatList(List list,String zs){
        String list_json = list as JSON
        String list_head = "{\"total\":"+zs+",\"rows\":"
        String list_footer = "}"
        String json = list_head + list_json +list_footer
        return new String(json)

    }
}
